package org.tabcap.workspace.document;

import java.io.File;

import javax.swing.JLabel;
import javax.swing.JTextPane;

public interface BaseDocument
{
	public void useTextPane(JTextPane textPane);
	public void useLabel(JLabel label);
	
	public String text();
	
	public boolean initialized();
	public void setInitialized(boolean initialized);
	
	public String name();
	public String directory();
	public File file();
	public boolean validFile();
	public boolean isWorthless();
	public boolean needsSave();
	public void save();
	public void saveAs(File file);
	public void undo();
	public void redo();
	public void cut();
	public void copy();
	public void paste();
	
	public void compile();
	public void run();
}